from paddlex import create_pipeline

pipeline = create_pipeline(pipeline="table_recognition_v2.yaml")

output = pipeline.predict(
    input="3a417bf2cc6a33e21bf2cd995da6898bd1de20d6a35b24157b27a77244616b1d.jpg",
    use_doc_orientation_classify=False,
    use_doc_unwarping=False,
)

for res in output:
    res.print()
    res.save_to_img("output/fj/")
    res.save_to_xlsx("output/fj/")
    res.save_to_html("output/fj/")
    res.save_to_json("output/fj/")

